<?php
/*
 * Created on 13.08.2009
 * Base signals, exported by core framework
 *
 */
 
 class Framework_SignalsyCore
 {
 
 	/**
 		Starting new session and default namespace (in options you may add array of namespace to create
 	**/
	static public function sessionStart($param = null, $options = null)
	{
		 new Zend_Session_Namespace('Default'); //default session ns
		 
		 if (isset($options))
		 {
		 	if (is_string($options))
		 	{
		 		new Zend_Session_Namespace($options);
		 	}
		 	else
		 	if (is_array($options))
		 	{
		 		foreach ($options as $session_ns)
		 		{
		 			
		 			if (is_string($session_ns))  new Zend_Session_Namespace($session_ns);
		 		}
		 	}
		 }		 
	}
	 
 
 /**
 @signal: sys_debug_info
 
 **/
 static public function dumpRoutingsTable($param = null, $options = null)
 {
  	include_once('/inc/lib/dBug/dBug.php');
  	
  	//var_dump(Signalsy_Router::getDebugInfo());
  	
  	new dBug(Signalsy_Router::getDebugInfo()); 
 }
 
 
 /**
 	Unknovn URL handler 
 **/
 static public function error404Handler($param = null, $options = null)
 {
		echo '<center><br /><br /><h3 style="font-color:red;">Sorry, this page not found (Error 404)</h3></center><br /><br /><br />';
		Zend_Debug::dump($param);
 }
 

 }